home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 351-375 / disk_352 / mg / src.lzh / h / macro.h < prev    next >
C/C++ Source or Header  |  1990-05-23  |  1KB  |  41 lines

  1. /* definitions for keyboard macros */
  2.  
  3. #ifndef    MACRO_H
  4. #define MACRO_H
  5.  
  6. #ifndef    LIST_H
  7. #include "list.h"
  8. #endif
  9.  
  10. /*
  11.  * For GNU comptability and to allow for searches, extended commands and
  12.  * other goodies in macros, macros _must_ be a string of keystrokes, nothing
  13.  * more.
  14.  */
  15. struct macro {
  16.     struct list     m_list;    /* List of macros in use */
  17.     KCHAR          *m_text;    /* The entire text */
  18.     KCHAR          *m_cur;    /* What's left in execution */
  19.     int             m_max;    /* space we have total/execution count */
  20.     int             m_count;/* space used so far */
  21. };
  22. #define    m_name    m_list.l_name
  23. #define    m_macp    m_list.l_p.l_mp
  24.  
  25. extern struct macro *inmacro;
  26. extern int      macrodef;
  27.  
  28. extern void add_key_to_macro 
  29. PROTO((KCHAR, struct macro *));
  30. extern void add_string_to_macro 
  31. PROTO((char *, struct macro *));
  32. extern int runmacro 
  33. PROTO((struct macro *, int, int, int));
  34. extern struct macro *find_macro 
  35. PROTO((char *));
  36. extern VOID restore_macro 
  37. PROTO((VOID));
  38. extern int sinsert 
  39. PROTO((register char *s));
  40. #endif
  41.